let App = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    next_no_more: false,
    pagesize: 8,
    getFinished: true,
    scrollTop: 0,
    scrollTo: 0,
    isLogin: false,
    pageno: 1,
    commentList: []
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad (options) {
    this.getArticleDetail(options.nid);
  },
  /**
   * 获取文章详情
   */
  getArticleDetail() {
    App._get('Site/Api002', {}, (result) => {
      this.setData(result)
    });
  },
  /**
   * 设置盒子高度
   */
  setListHeight() {
    let _this = this;
    wx.getSystemInfo({
      success: function (res) {
        _this.setData({
          scrollHeight: res.windowHeight,
        });
      }
    });
  }
})